package com.dd.entity.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import lombok.Data;

@Data
@Schema(name = "EmployeeQueryDTO", description = "员工查询条件")
public class EmployeeQueryDTO extends PageDTO{
    @Schema(name = "empName", description = "员工姓名")
    private String empName;
//    @Schema(name = "sex", description = "员工性别")
//    @Max(value = 2,message = "长度最大2位")
//    private String sex;
//    @Schema(name = "age", description = "员工年龄")
//    private Integer age;
    @Schema(name = "salary", description = "员工薪资")
    @Min(value = 0,message = "工资不能小于0")
    private double salary;
}
